package com.kc.gb.device.controller.dto;

import com.kc.gb.device.common.utils.I18NHelper;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
public class HeaderMenu {
    private String name;
    private String url;
    private String icon;
    private String i18nCode;

    public HeaderMenu(String name, String url, String icon, String i18nCode) {
        this.name = name;
        this.url = url;
        this.icon = icon;
        this.i18nCode = i18nCode;
    }

    public String getTitle(){
        return I18NHelper.getLocaleMessage(i18nCode);
    }
}
